﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy;

namespace FortuneHeaven.Entity.Game
{
    public partial class GameKindItemInfo : EntityBase
    {
        private const string TABLE_NAME = "GameKindItem";
        private const string INSERT_SQL = "insert into GameKindItem ( [KindID], [TypeID], [JoinID], [SortID], [KindName], [ProcessName], [MaxVersion], [DataBaseName], [Nullity], [NetBarID]) values ( @KindID, @TypeID, @JoinID, @SortID, @KindName, @ProcessName, @MaxVersion, @DataBaseName, @Nullity, @NetBarID)";
        private const string UPDATE_SQL = "update GameKindItem set  [KindID] = @KindID, [TypeID] = @TypeID, [JoinID] = @JoinID, [SortID] = @SortID, [KindName] = @KindName, [ProcessName] = @ProcessName, [MaxVersion] = @MaxVersion, [DataBaseName] = @DataBaseName, [Nullity] = @Nullity, [NetBarID] = @NetBarID where ID = @ID";
        /// <summary>
        /// 类型标识
        /// </summary>
        public Int32 KindID
        {
            get;
            set;
        }
        /// <summary>
        /// 种类标识
        /// </summary>
        public Int32 TypeID
        {
            get;
            set;
        }
        /// <summary>
        /// 挂接标识
        /// </summary>
        public Int32 JoinID
        {
            get;
            set;
        }
        /// <summary>
        /// 排序标识
        /// </summary>
        public Int32 SortID
        {
            get;
            set;
        }
        /// <summary>
        /// 类型名字
        /// </summary>
        public String KindName
        {
            get;
            set;
        }
        /// <summary>
        /// 进程名字
        /// </summary>
        public String ProcessName
        {
            get;
            set;
        }
        /// <summary>
        /// 版本号码
        /// </summary>
        public Int32 MaxVersion
        {
            get;
            set;
        }
        /// <summary>
        /// 数据库名字
        /// </summary>
        public String DataBaseName
        {
            get;
            set;
        }
        /// <summary>
        /// 无效标志
        /// </summary>
        public Boolean Nullity
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32? NetBarID
        {
            get;
            set;
        }
        public override void SetValue(string key, object value)
        {
            key = key.ToLower();
            switch (key)
            {
                case "kindid":
                    this.KindID = (Int32)value;
                    break;
                case "typeid":
                    this.TypeID = (Int32)value;
                    break;
                case "joinid":
                    this.JoinID = (Int32)value;
                    break;
                case "sortid":
                    this.SortID = (Int32)value;
                    break;
                case "kindname":
                    this.KindName = (String)value;
                    break;
                case "processname":
                    this.ProcessName = (String)value;
                    break;
                case "maxversion":
                    this.MaxVersion = (Int32)value;
                    break;
                case "databasename":
                    this.DataBaseName = (String)value;
                    break;
                case "nullity":
                    this.Nullity = (Boolean)value;
                    break;
                case "netbarid":
                    this.NetBarID = (Int32?)value;
                    break;
            }
        }
    }

}
